package nl.haemers.test.data.vo 
{
	/**
	 * @author Jonathan Haemers
	 */
	[Serialize(name="employee")]
	public class TestVO
	{
		protected var _title			:String;
		protected var _name				:String;
		protected var _id				:int;
		protected var _xPos				:Number;
		protected var _human			:Boolean;
		protected var _color			:uint;
	
		protected var _address			:AddressVO;
		
		public function TestVO() 
		{
			
		}
		
		/** Public methods **/
		
		
		/** Getters & Setters **/
		[Serialize(name="title")]
		public function set title(value:String) : void
		{
			_title = value;
		}
		public function get title() : String
		{ 
			return _title;
		}
		
		public function get name() : String
		{ 
			return _name;
		}
		public function set name( value:String ) : void 
		{
			_name = value;
		}
		
		[Serialize(name="index")]
		public function get id() : int
		{ 
			return _id;
		}
		public function set id( value:int ) : void 
		{
			_id = value;
		}
		
		[Serialize(name="position")]
		public function get xPos() : Number
		{ 
			return _xPos;
		}
		public function set xPos( value:Number ) : void 
		{
			_xPos = value;
		}
		
		public function get color() : uint
		{ 
			return _color;
		}
		public function set color( value:uint ) : void 
		{
			_color = value;
		}
		
		public function get human() : Boolean
		{ 
			return _human;
		}
		public function set human( value:Boolean ) : void 
		{
			_human = value;
		}
		
		[Serialize(name="address")]
		public function get addressVO() : AddressVO
		{ 
			return (_address != null) ? _address : new AddressVO();
		}
		public function set addressVO( value:AddressVO ) : void 
		{
			_address = value;
		}
		
		/** Protected methods **/
		
		/** Private methods **/
	}

}